package com.oracle.application.feign;

import com.oracle.application.feign.vo.Member;
import com.oracle.application.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "system-bookstop-service-member", path = "/member")
public interface MemberFeign {
    @GetMapping("/getMemberByLoginName")
    public R<Member> getMemberByLoginName(@RequestParam("loginName") String loginName);

    @PostMapping("/addMember")
    public R<Member> addMember(@RequestBody Member member);

    @GetMapping("/checkEmail")
    public R<Member> checkEmail(@RequestParam("loginName") String loginName, @RequestParam("email") String email, @RequestParam("id") String id);

}
